package cn.xianshu.basic.mapper;

import cn.xianshu.basic.query.BasicQuery;
import org.springframework.stereotype.Component;
import java.util.List;

@Component
public interface BasicMapper<T> {
    T loadById(Long id);
    List<T> loadAll();
    void insert(T t);
    void update(T t);
    void remove(Long id);
    // 分页查询总条数
    Integer count(BasicQuery query);
    // 当前页数据
    List<T> queryData(BasicQuery query);

    void Bydelete(List<Long> ids);

}
